/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * insumos_articulos_movi_inve.java
 *
 * Created on 23/11/2011, 11:41:13 AM
 */

package sie_invdis;


import java.sql.*;
import javax.swing.*;

import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.JTable.*;
import java.awt.*;
import java.text.*;
import java.util.Date;
import java.util.Calendar;
import java.text.SimpleDateFormat;
import java.text.ParseException;

/**
 *
 * @author Michelle
 */
public class insumos_articulos_movi_inve extends javax.swing.JFrame {

    private javax.swing.table.DefaultTableModel jtable_modelo_kardex;
    private javax.swing.table.DefaultTableModel jtable_modelo_doctomovidet;
    private javax.swing.table.DefaultTableModel jtable_modelo_doctomovinve;

    private ResultSet rs = null;
    private bd_conexion x = new bd_conexion() ;
    private int buscamp=2,controlcomboinsu=0,opbuscamp=1,control_enter=0,yacarguecatdocto=0,indexactual=0;
    private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");
    private SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
    /** Creates new form insumos_articulos_movi_inve */
    public insumos_articulos_movi_inve() {
        this.iniciar_modelo_kardex();
        this.iniciar_modelo_doctodetalle();
        this.iniciar_modelo_movinveinsumos();
        initComponents();
        this.buttonGroup1.setSelected(jrb_bclave.getModel(), true);
        this.jtf_busqueda.requestFocus();
        this.loadcomalmacenes();
        this.loadcomidtipomovi();
        java.util.Date fechahoya=new Date();
        this.jdc_fechadocto.setDate(fechahoya);
    }
 private void iniciar_modelo_kardex()
 {
        jtable_modelo_kardex=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_kardex.addColumn("<html><BODY><b>Almacen</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>id movi</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Fecha</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Tipo Mov</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Ref.</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>clie/prov</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Articulo</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Descripcion</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Item</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>U.Sal.</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Costo</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Precio</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Cantidad</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Historial</b></BODY></html>");
        jtable_modelo_kardex.addColumn("<html><BODY><b>Observ.</b></BODY></html>");
}
private void iniciar_modelo_doctodetalle()
    {
        jtable_modelo_doctomovidet=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_doctomovidet.addColumn("<html><b>Clave</b></html>");
        jtable_modelo_doctomovidet.addColumn("<html><b>Descripcion</b></html>");
        jtable_modelo_doctomovidet.addColumn("<html><b>Unidad</b></html>");
        jtable_modelo_doctomovidet.addColumn("<html><b>Cantidad</b></html>");
        jtable_modelo_doctomovidet.addColumn("<html><b>Precio</b></html>");
        jtable_modelo_doctomovidet.addColumn("<html><b>Costo</b></html>");
        jtable_modelo_doctomovidet.addColumn("<html><b>Observacion</b></html>");
    }
private void iniciar_modelo_movinveinsumos()
        {
            jtable_modelo_doctomovinve=new javax.swing.table.DefaultTableModel();//Creo el modelo
            jtable_modelo_doctomovinve.addColumn("<html><b>Moviemiento</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Status</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Docto Ref</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>E. Elaboro</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Fecha</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Dias Trans.</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Piezas</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Costo</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Precio</b></html>");
            jtable_modelo_doctomovinve.addColumn("<html><b>Observaciones</b></html>");
        }
private void loadcomalmacenes()
    {
          this.jcmbx_almacenes.addItem("0:Elegir Almacen");
        try
            {
                rs = x.sieuno_executediversosv2("select * from x1distribucion_insumos_almacenes() as (id smallint,cla character varying(30));",variables_global.getconexiongral());
               while (rs.next())
                    {
                      this.jcmbx_almacenes.addItem(rs.getString("id")+":"+rs.getString("cla"));
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }
private void loadcomidtipomovi()
    {
          this.jcmbx_idmovimientoalma.addItem("0:Elegir Movimiento");
          try
            {
                rs = x.sieuno_executediversosv2("select * from x1distribucion_insumos_artic_insu_mov_tipos() as (id smallint,descrip text);",variables_global.getconexiongral());
               while (rs.next())
                    {
                      this.jcmbx_idmovimientoalma.addItem(rs.getString("id")+":"+rs.getString("descrip"));
                    }
             }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }
    }

private void carga_datos_catalogo(int opcion, int opbuscamp,String busqueda,int almacen,String cantidad)
 {
       DecimalFormat miformat = new DecimalFormat("###,###,###,###.##");
       Object[] fnewRow = new Object[7];
       String texto="select * from x1distribucion_insumos_articulos_catalogo("+opcion+","+opbuscamp+",'"+busqueda.toUpperCase().trim()+"',"+almacen+") as (id character varying(16),describinsumo character varying(80), unisal character varying(3),precio1 numeric,ultimocosto numeric)";
       System.out.println(texto);
       try
        {
           rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                    fnewRow[0]=rs.getString("id");
                    fnewRow[1]=rs.getString("describinsumo");
                    fnewRow[2]=rs.getString("unisal");
                    fnewRow[3]=cantidad;
                    fnewRow[4]=rs.getString("precio1");
                    fnewRow[5]=rs.getString("ultimocosto");
                    fnewRow[6]=".";
                    jtable_modelo_doctomovidet.addRow(fnewRow);
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
  }

void carga_datos_kardex(int opcion, String busqueda,String almacen)
 {
       DecimalFormat miformat = new DecimalFormat("###,###,###");
       while(jtable_modelo_kardex.getRowCount()>0)jtable_modelo_kardex.removeRow(0);
       float historial=0;
       Object[] fnewRow = new Object[15];
       String texto="select * from x1distribucion_insumos_articulos_kardex("+opcion+",'"+busqueda.toUpperCase().trim()+"',"+almacen+") as (folio integer,fechamov timestamp,tipomovinve smallint,tipodescribe text,referenciainve character varying(16),fechareferencia date,clave_clie_prov character varying(16),idarticuloinve character varying(16),cantidadinve numeric,precioinve numeric,costoinve numeric,observainve character varying(80),almacen smallint,describealmacen character varying(30),describeinsumo character varying(80),unidadsal character varying(3),itemproveedor character varying(16))",abrehtml="",cierrahtml="";
       rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
       System.out.println(texto);
       try
        {
            while (rs.next())
                {
                if(rs.getFloat("cantidadinve") > 0 )//significa que fue entrada
                    {
                        abrehtml="<html><b>";
                        cierrahtml="</b></html>";
                    }
                else
                    {
                        abrehtml="";
                        cierrahtml="";
                    }
                    historial+=rs.getFloat("cantidadinve");
                    fnewRow[0]=rs.getString ("almacen")+":"+rs.getString ("describealmacen");
                    fnewRow[1]=rs.getString ("folio");
                    fnewRow[2]=this.fechaeuropea(rs.getString("fechareferencia"));
                    fnewRow[3]=rs.getString ("tipomovinve")+":"+rs.getString("tipodescribe");
                    fnewRow[4]=rs.getString ("referenciainve");
                    fnewRow[5]=rs.getString ("clave_clie_prov");
                    fnewRow[6]=rs.getString ("idarticuloinve");
                    fnewRow[7]=rs.getString ("describeinsumo");
                    fnewRow[8]=rs.getString ("itemproveedor");
                    fnewRow[9]=rs.getString ("unidadsal");
                    fnewRow[10]=rs.getString ("costoinve");
                    fnewRow[11]=rs.getString ("precioinve");
                    fnewRow[12]=abrehtml+rs.getString ("cantidadinve")+cierrahtml;
                    fnewRow[13]=abrehtml+miformat.format(historial)+cierrahtml;
                    fnewRow[14]=rs.getString ("observainve");
                    jtable_modelo_kardex.addRow(fnewRow);
                }

        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }

 }
private void carga_datos_movinventariodocto(int opbus,String tbusca)
{
       String fechacat = "",fechaorigen="",fechaentrega="";
       DecimalFormat miformat = new DecimalFormat("###,###,###,###");
       Object[] fnewRow = new Object[10];
       while(jtable_modelo_doctomovinve.getRowCount()>0)jtable_modelo_doctomovinve.removeRow(0);
       String cadenasql="select * from x1distribucion_insumos_artic_mov_catalogodocto("+opbus+",'"+tbusca+"') as (iddocto integer,fecha date,doctoref character varying(12),idmovimiento smallint,idstatus smallint,idaplico integer,observacion text,describetipomov text,nombre character varying(50),nombreapaterno character varying(50),totalpiezas numeric,totalcosto numeric,totalprecio numeric,diastras integer);";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
       try
         {
         rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    fechaentrega="";
                    fnewRow[0]=rs.getString("idmovimiento")+":"+rs.getString("describetipomov");
                    fnewRow[1]=rs.getString("idstatus")+":ORIGINAL";
                    fnewRow[2]=rs.getString("iddocto")+":"+rs.getString("doctoref");
                    fnewRow[3]=rs.getString("idaplico")+":"+rs.getString("nombre")+" "+rs.getString("nombreapaterno");
                    fechaorigen="<html>"+this.fechaeuropea(rs.getString("fecha"))+":<br>"+DiaSemana(this.fechaeuropea(rs.getString ("fecha")))+"</html>";
                    fnewRow[4]=fechaorigen;
                    fnewRow[5]=rs.getString("diastras");
                    fnewRow[6]=miformat.format(rs.getFloat("totalpiezas"));
                    fnewRow[7]=miformat.format(rs.getFloat("totalcosto"));
                    fnewRow[8]=miformat.format(rs.getFloat("totalprecio"));
                    fnewRow[9]=rs.getString("observacion");
                   jtable_modelo_doctomovinve.addRow(fnewRow);
                }
        }
        catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
        int numerofilas=this.jtable_modelo_doctomovinve.getRowCount();
           for(int i = 0 ;i < numerofilas; i++)
                {
                   jt_almamoviextras.setRowHeight(i, 30);
                }
}


private String  fechaeuropea(String fecha) {
         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoresta.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }

private String fechaamericana(Date fe) {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("yyyy-MM-dd");
       String cadenafecha="";
       cadenafecha= formateadorestaeuropa.format(fe);
       return cadenafecha;
    }
private String DiaSemana(String fe) {
       String dia = "";
       java.util.Date fecha=null;
         try
           {
             fecha = formateador.parse(fe);
           }
        catch (ParseException e)
            {
            //Error, la cadena de texto no se puede convertir en fecha.
            }
        Calendar cal= Calendar.getInstance();
        cal.setTime(fecha);
        //ojo para establecer o recetear cada parte de la fecha por separado
        //cal.set(Calendar.YEAR, fecha.getYear());
        //cal.set(Calendar.MONTH, fecha.getMonth());
        //cal.set(Calendar.DAY_OF_MONTH, fecha.getDay());
        int diaInt = cal.get(Calendar.DAY_OF_WEEK);
        switch (diaInt) {
            case 1:
                dia = "Domingo";
                break;
            case 2:
                dia = "Lunes";
                break;
            case 3:
                dia = "Martes";
                break;
            case 4:
                dia = "Miercoles";
                break;
            case 5:
                dia = "Jueves";
                break;
            case 6:
                dia = "Viernes";
                break;
            case 7:
                dia = "Sabado";
                break;

        }
        return dia;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jtbl_kardex = new javax.swing.JTable(){
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }}
            ;
            jLabel1 = new javax.swing.JLabel();
            jtf_busqueda = new javax.swing.JTextField();
            jbtn_buscar = new javax.swing.JButton();
            jrb_bclave = new javax.swing.JRadioButton();
            jrb_bdescrip = new javax.swing.JRadioButton();
            jrb_bitem = new javax.swing.JRadioButton();
            jrb_bitem1 = new javax.swing.JRadioButton();
            jrb_fechamov = new javax.swing.JRadioButton();
            jrb_fechamov1 = new javax.swing.JRadioButton();
            jPanel1 = new javax.swing.JPanel();
            jPanel7 = new javax.swing.JPanel();
            jScrollPane2 = new javax.swing.JScrollPane();
            jt_almamoviextras = new javax.swing.JTable()
            {
                public boolean isCellEditable(int rowIndex, int mColIndex) {
                    return false;
                }
            }
            ;
            jlbl_textobuscado = new javax.swing.JLabel();
            jPanel2 = new javax.swing.JPanel();
            jPanel3 = new javax.swing.JPanel();
            jdc_fechadocto = new com.toedter.calendar.JDateChooser();
            jLabel2 = new javax.swing.JLabel();
            jtf_observaciones = new javax.swing.JTextField();
            jLabel4 = new javax.swing.JLabel();
            jLabel6 = new javax.swing.JLabel();
            jcmbx_almacenes = new javax.swing.JComboBox();
            jLabel3 = new javax.swing.JLabel();
            jtf_doctoreferencia = new javax.swing.JTextField();
            jLabel7 = new javax.swing.JLabel();
            jcmbx_idmovimientoalma = new javax.swing.JComboBox();
            jpn_cuerpo = new javax.swing.JPanel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jtb_insumos = new javax.swing.JTable()
            {
                public boolean isCellEditable(int rowIndex, int mColIndex) {
                    if (mColIndex < 3)
                    return false;
                    else
                    return true;
                }
            }
            ;
            jScrollPane3 = new javax.swing.JScrollPane();
            jta_archivo = new javax.swing.JTextArea();
            jLabel10 = new javax.swing.JLabel();
            jbtn_importar = new javax.swing.JButton();
            jPanel4 = new javax.swing.JPanel();
            jLabel5 = new javax.swing.JLabel();
            jtf_canpzaingresa = new javax.swing.JTextField();
            jLabel14 = new javax.swing.JLabel();
            jtf_idinsumo = new javax.swing.JTextField();
            jbtn_buscaridinsu = new javax.swing.JButton();
            jPanel6 = new javax.swing.JPanel();
            jbtn_guardar = new javax.swing.JButton();
            jbtn_salir = new javax.swing.JButton();
            jbtn_helpayudame = new javax.swing.JButton();
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu1 = new javax.swing.JMenu();
            jmni_salir = new javax.swing.JMenuItem();
            jMenu2 = new javax.swing.JMenu();
            jMenuItem1 = new javax.swing.JMenuItem();
            jmni_buscararticulo = new javax.swing.JMenuItem();
            jmni_guardardocto = new javax.swing.JMenuItem();
            jMenu3 = new javax.swing.JMenu();

            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
            org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getResourceMap(insumos_articulos_movi_inve.class);
            setTitle(resourceMap.getString("Form.title")); // NOI18N
            setName("Form"); // NOI18N

            jTabbedPane1.setName("jTabbedPane1"); // NOI18N
            jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
                public void stateChanged(javax.swing.event.ChangeEvent evt) {
                    jTabbedPane1StateChanged(evt);
                }
            });

            jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel5.border.title"))); // NOI18N
            jPanel5.setName("jPanel5"); // NOI18N

            jScrollPane4.setName("jScrollPane4"); // NOI18N

            jtbl_kardex.setModel(this.jtable_modelo_kardex);
            jtbl_kardex.setName("jtbl_kardex"); // NOI18N
            jtbl_kardex.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    jtbl_kardexMouseClicked(evt);
                }
            });
            jtbl_kardex.addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyPressed(java.awt.event.KeyEvent evt) {
                    jtbl_kardexKeyPressed(evt);
                }
            });
            jScrollPane4.setViewportView(jtbl_kardex);

            jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
            jLabel1.setName("jLabel1"); // NOI18N

            jtf_busqueda.setToolTipText(resourceMap.getString("jtf_busqueda.toolTipText")); // NOI18N
            jtf_busqueda.setName("jtf_busqueda"); // NOI18N
            jtf_busqueda.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_busquedaActionPerformed(evt);
                }
            });

            jbtn_buscar.setIcon(resourceMap.getIcon("jbtn_buscar.icon")); // NOI18N
            jbtn_buscar.setText(resourceMap.getString("jbtn_buscar.text")); // NOI18N
            jbtn_buscar.setName("jbtn_buscar"); // NOI18N
            jbtn_buscar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_buscarActionPerformed(evt);
                }
            });

            buttonGroup1.add(jrb_bclave);
            jrb_bclave.setText(resourceMap.getString("jrb_bclave.text")); // NOI18N
            jrb_bclave.setToolTipText(resourceMap.getString("jrb_bclave.toolTipText")); // NOI18N
            jrb_bclave.setActionCommand(resourceMap.getString("jrb_bclave.actionCommand")); // NOI18N
            jrb_bclave.setName("jrb_bclave"); // NOI18N
            jrb_bclave.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jrb_bclaveActionPerformed(evt);
                }
            });

            buttonGroup1.add(jrb_bdescrip);
            jrb_bdescrip.setText(resourceMap.getString("jrb_bdescrip.text")); // NOI18N
            jrb_bdescrip.setToolTipText(resourceMap.getString("jrb_bdescrip.toolTipText")); // NOI18N
            jrb_bdescrip.setActionCommand(resourceMap.getString("jrb_bdescrip.actionCommand")); // NOI18N
            jrb_bdescrip.setName("jrb_bdescrip"); // NOI18N
            jrb_bdescrip.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jrb_bdescripActionPerformed(evt);
                }
            });

            buttonGroup1.add(jrb_bitem);
            jrb_bitem.setText(resourceMap.getString("jrb_bitem.text")); // NOI18N
            jrb_bitem.setToolTipText(resourceMap.getString("jrb_bitem.toolTipText")); // NOI18N
            jrb_bitem.setActionCommand(resourceMap.getString("jrb_bitem.actionCommand")); // NOI18N
            jrb_bitem.setName("jrb_bitem"); // NOI18N
            jrb_bitem.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jrb_bitemActionPerformed(evt);
                }
            });

            buttonGroup1.add(jrb_bitem1);
            jrb_bitem1.setText(resourceMap.getString("jrb_bitem1.text")); // NOI18N
            jrb_bitem1.setToolTipText(resourceMap.getString("jrb_bitem1.toolTipText")); // NOI18N
            jrb_bitem1.setActionCommand(resourceMap.getString("jrb_bitem1.actionCommand")); // NOI18N
            jrb_bitem1.setName("jrb_bitem1"); // NOI18N
            jrb_bitem1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jrb_bitem1ActionPerformed(evt);
                }
            });

            buttonGroup1.add(jrb_fechamov);
            jrb_fechamov.setText(resourceMap.getString("jrb_fechamov.text")); // NOI18N
            jrb_fechamov.setToolTipText(resourceMap.getString("jrb_fechamov.toolTipText")); // NOI18N
            jrb_fechamov.setActionCommand(resourceMap.getString("jrb_fechamov.actionCommand")); // NOI18N
            jrb_fechamov.setName("jrb_fechamov"); // NOI18N
            jrb_fechamov.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jrb_fechamovActionPerformed(evt);
                }
            });

            buttonGroup1.add(jrb_fechamov1);
            jrb_fechamov1.setText(resourceMap.getString("jrb_fechamov1.text")); // NOI18N
            jrb_fechamov1.setToolTipText(resourceMap.getString("jrb_fechamov1.toolTipText")); // NOI18N
            jrb_fechamov1.setActionCommand(resourceMap.getString("jrb_fechamov1.actionCommand")); // NOI18N
            jrb_fechamov1.setName("jrb_fechamov1"); // NOI18N
            jrb_fechamov1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jrb_fechamov1ActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
            jPanel5.setLayout(jPanel5Layout);
            jPanel5Layout.setHorizontalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                    .addGap(167, 167, 167)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(jrb_bclave)
                            .addGap(18, 18, 18)
                            .addComponent(jrb_bdescrip)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jrb_bitem)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jrb_bitem1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jrb_fechamov)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jrb_fechamov1))
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addComponent(jLabel1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jtf_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jbtn_buscar)))
                    .addContainerGap(248, Short.MAX_VALUE))
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 859, Short.MAX_VALUE)
            );
            jPanel5Layout.setVerticalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel1)
                        .addComponent(jtf_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jbtn_buscar))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jrb_bitem)
                        .addComponent(jrb_bdescrip)
                        .addComponent(jrb_bclave)
                        .addComponent(jrb_bitem1)
                        .addComponent(jrb_fechamov)
                        .addComponent(jrb_fechamov1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 519, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(33, Short.MAX_VALUE))
            );

            jTabbedPane1.addTab(resourceMap.getString("jPanel5.TabConstraints.tabTitle"), jPanel5); // NOI18N

            jPanel1.setName("jPanel1"); // NOI18N

            jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel7.border.title"))); // NOI18N
            jPanel7.setName("jPanel7"); // NOI18N

            jScrollPane2.setName("jScrollPane2"); // NOI18N

            jt_almamoviextras.setModel(this.jtable_modelo_doctomovinve);
            jt_almamoviextras.setName("jt_almamoviextras"); // NOI18N
            jScrollPane2.setViewportView(jt_almamoviextras);

            jlbl_textobuscado.setFont(resourceMap.getFont("jlbl_textobuscado.font")); // NOI18N
            jlbl_textobuscado.setName("jlbl_textobuscado"); // NOI18N

            javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
            jPanel7.setLayout(jPanel7Layout);
            jPanel7Layout.setHorizontalGroup(
                jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel7Layout.createSequentialGroup()
                    .addGap(81, 81, 81)
                    .addComponent(jlbl_textobuscado, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(680, Short.MAX_VALUE))
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 849, Short.MAX_VALUE)
            );
            jPanel7Layout.setVerticalGroup(
                jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel7Layout.createSequentialGroup()
                    .addComponent(jlbl_textobuscado)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
                    .addContainerGap())
            );

            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 875, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap()))
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 644, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(81, 81, 81)
                        .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(82, 82, 82)))
            );

            jTabbedPane1.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

            jPanel2.setName("jPanel2"); // NOI18N

            jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel3.border.title"))); // NOI18N
            jPanel3.setName("jPanel3"); // NOI18N

            jdc_fechadocto.setDateFormatString(resourceMap.getString("jdc_fechadocto.dateFormatString")); // NOI18N
            jdc_fechadocto.setName("jdc_fechadocto"); // NOI18N
            jdc_fechadocto.setNextFocusableComponent(jcmbx_almacenes);

            jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
            jLabel2.setName("jLabel2"); // NOI18N

            jtf_observaciones.setName("jtf_observaciones"); // NOI18N
            jtf_observaciones.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_observacionesActionPerformed(evt);
                }
            });

            jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
            jLabel4.setName("jLabel4"); // NOI18N

            jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
            jLabel6.setName("jLabel6"); // NOI18N

            jcmbx_almacenes.setName("jcmbx_almacenes"); // NOI18N
            jcmbx_almacenes.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jcmbx_almacenesActionPerformed(evt);
                }
            });

            jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
            jLabel3.setName("jLabel3"); // NOI18N

            jtf_doctoreferencia.setText(resourceMap.getString("jtf_doctoreferencia.text")); // NOI18N
            jtf_doctoreferencia.setName("jtf_doctoreferencia"); // NOI18N
            jtf_doctoreferencia.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_doctoreferenciaActionPerformed(evt);
                }
            });

            jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
            jLabel7.setName("jLabel7"); // NOI18N

            jcmbx_idmovimientoalma.setName("jcmbx_idmovimientoalma"); // NOI18N
            jcmbx_idmovimientoalma.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jcmbx_idmovimientoalmaActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
            jPanel3.setLayout(jPanel3Layout);
            jPanel3Layout.setHorizontalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jdc_fechadocto, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(33, 33, 33)
                            .addComponent(jLabel6)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jcmbx_almacenes, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel3)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtf_doctoreferencia, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel7)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jcmbx_idmovimientoalma, 0, 203, Short.MAX_VALUE))
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel4)
                            .addGap(18, 18, 18)
                            .addComponent(jtf_observaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 722, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            );
            jPanel3Layout.setVerticalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel2)
                        .addComponent(jdc_fechadocto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(jcmbx_almacenes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3)
                            .addComponent(jtf_doctoreferencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7)
                            .addComponent(jcmbx_idmovimientoalma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jtf_observaciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel4))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );

            jpn_cuerpo.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpn_cuerpo.border.title"))); // NOI18N
            jpn_cuerpo.setName("jpn_cuerpo"); // NOI18N

            jScrollPane1.setName("jScrollPane1"); // NOI18N

            jtb_insumos.setModel(this.jtable_modelo_doctomovidet);
            jtb_insumos.setName("jtb_insumos"); // NOI18N
            jScrollPane1.setViewportView(jtb_insumos);

            jScrollPane3.setName("jScrollPane3"); // NOI18N

            jta_archivo.setColumns(20);
            jta_archivo.setRows(5);
            jta_archivo.setName("jta_archivo"); // NOI18N
            jScrollPane3.setViewportView(jta_archivo);

            jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
            jLabel10.setName("jLabel10"); // NOI18N

            jbtn_importar.setIcon(resourceMap.getIcon("jbtn_importar.icon")); // NOI18N
            jbtn_importar.setText(resourceMap.getString("jbtn_importar.text")); // NOI18N
            jbtn_importar.setName("jbtn_importar"); // NOI18N
            jbtn_importar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_importarActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jpn_cuerpoLayout = new javax.swing.GroupLayout(jpn_cuerpo);
            jpn_cuerpo.setLayout(jpn_cuerpoLayout);
            jpn_cuerpoLayout.setHorizontalGroup(
                jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 849, Short.MAX_VALUE)
                .addGroup(jpn_cuerpoLayout.createSequentialGroup()
                    .addGroup(jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jpn_cuerpoLayout.createSequentialGroup()
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(155, 155, 155)
                            .addComponent(jbtn_importar)))
                    .addContainerGap())
            );
            jpn_cuerpoLayout.setVerticalGroup(
                jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpn_cuerpoLayout.createSequentialGroup()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel10)
                    .addGroup(jpn_cuerpoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jpn_cuerpoLayout.createSequentialGroup()
                            .addGap(18, 18, 18)
                            .addComponent(jbtn_importar))
                        .addGroup(jpn_cuerpoLayout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(27, 27, 27))
            );

            jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel4.border.title"))); // NOI18N
            jPanel4.setName("jPanel4"); // NOI18N

            jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
            jLabel5.setName("jLabel5"); // NOI18N

            jtf_canpzaingresa.setText(resourceMap.getString("jtf_canpzaingresa.text")); // NOI18N
            jtf_canpzaingresa.setToolTipText(resourceMap.getString("jtf_canpzaingresa.toolTipText")); // NOI18N
            jtf_canpzaingresa.setName("jtf_canpzaingresa"); // NOI18N
            jtf_canpzaingresa.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_canpzaingresaActionPerformed(evt);
                }
            });

            jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
            jLabel14.setName("jLabel14"); // NOI18N

            jtf_idinsumo.setToolTipText(resourceMap.getString("jtf_idinsumo.toolTipText")); // NOI18N
            jtf_idinsumo.setName("jtf_idinsumo"); // NOI18N
            jtf_idinsumo.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jtf_idinsumoActionPerformed(evt);
                }
            });

            jbtn_buscaridinsu.setIcon(resourceMap.getIcon("jbtn_buscaridinsu.icon")); // NOI18N
            jbtn_buscaridinsu.setText(resourceMap.getString("jbtn_buscaridinsu.text")); // NOI18N
            jbtn_buscaridinsu.setName("jbtn_buscaridinsu"); // NOI18N
            jbtn_buscaridinsu.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_buscaridinsuActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
            jPanel4.setLayout(jPanel4Layout);
            jPanel4Layout.setHorizontalGroup(
                jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(jLabel5)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_canpzaingresa, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel14)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jtf_idinsumo, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jbtn_buscaridinsu)
                    .addContainerGap(498, Short.MAX_VALUE))
            );
            jPanel4Layout.setVerticalGroup(
                jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_idinsumo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_canpzaingresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14)
                    .addComponent(jbtn_buscaridinsu)
                    .addComponent(jLabel5))
            );

            jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            jPanel6.setName("jPanel6"); // NOI18N

            jbtn_guardar.setIcon(resourceMap.getIcon("jbtn_guardar.icon")); // NOI18N
            jbtn_guardar.setText(resourceMap.getString("jbtn_guardar.text")); // NOI18N
            jbtn_guardar.setName("jbtn_guardar"); // NOI18N
            jbtn_guardar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_guardarActionPerformed(evt);
                }
            });

            jbtn_salir.setIcon(resourceMap.getIcon("jbtn_salir.icon")); // NOI18N
            jbtn_salir.setText(resourceMap.getString("jbtn_salir.text")); // NOI18N
            jbtn_salir.setName("jbtn_salir"); // NOI18N
            jbtn_salir.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_salirActionPerformed(evt);
                }
            });

            jbtn_helpayudame.setIcon(resourceMap.getIcon("jbtn_helpayudame.icon")); // NOI18N
            jbtn_helpayudame.setText(resourceMap.getString("jbtn_helpayudame.text")); // NOI18N
            jbtn_helpayudame.setName("jbtn_helpayudame"); // NOI18N
            jbtn_helpayudame.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jbtn_helpayudameActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
            jPanel6.setLayout(jPanel6Layout);
            jPanel6Layout.setHorizontalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                    .addGap(253, 253, 253)
                    .addComponent(jbtn_salir)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 323, Short.MAX_VALUE)
                    .addComponent(jbtn_helpayudame)
                    .addGap(127, 127, 127))
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jbtn_guardar)
                        .addContainerGap(742, Short.MAX_VALUE)))
            );
            jPanel6Layout.setVerticalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jbtn_helpayudame)
                        .addComponent(jbtn_salir, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addComponent(jbtn_guardar)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            );

            javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
            jPanel2.setLayout(jPanel2Layout);
            jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jPanel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jpn_cuerpo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
            );
            jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(29, 29, 29)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jpn_cuerpo, javax.swing.GroupLayout.PREFERRED_SIZE, 386, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)
                    .addContainerGap())
            );

            jTabbedPane1.addTab(resourceMap.getString("jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N

            jMenuBar1.setName("jMenuBar1"); // NOI18N

            jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
            jMenu1.setName("jMenu1"); // NOI18N

            jmni_salir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
            jmni_salir.setIcon(resourceMap.getIcon("jmni_salir.icon")); // NOI18N
            jmni_salir.setText(resourceMap.getString("jmni_salir.text")); // NOI18N
            jmni_salir.setName("jmni_salir"); // NOI18N
            jmni_salir.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jmni_salirActionPerformed(evt);
                }
            });
            jMenu1.add(jmni_salir);

            jMenuBar1.add(jMenu1);

            jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
            jMenu2.setName("jMenu2"); // NOI18N

            jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
            jMenuItem1.setText(resourceMap.getString("jMenuItem1.text")); // NOI18N
            jMenuItem1.setToolTipText(resourceMap.getString("jMenuItem1.toolTipText")); // NOI18N
            jMenuItem1.setName("jMenuItem1"); // NOI18N
            jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem1ActionPerformed(evt);
                }
            });
            jMenu2.add(jMenuItem1);

            jmni_buscararticulo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));
            jmni_buscararticulo.setText(resourceMap.getString("jmni_buscararticulo.text")); // NOI18N
            jmni_buscararticulo.setName("jmni_buscararticulo"); // NOI18N
            jmni_buscararticulo.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jmni_buscararticuloActionPerformed(evt);
                }
            });
            jMenu2.add(jmni_buscararticulo);

            jmni_guardardocto.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F7, 0));
            jmni_guardardocto.setText(resourceMap.getString("jmni_guardardocto.text")); // NOI18N
            jmni_guardardocto.setName("jmni_guardardocto"); // NOI18N
            jmni_guardardocto.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jmni_guardardoctoActionPerformed(evt);
                }
            });
            jMenu2.add(jmni_guardardocto);

            jMenuBar1.add(jMenu2);

            jMenu3.setText(resourceMap.getString("jMenu3.text")); // NOI18N
            jMenu3.setName("jMenu3"); // NOI18N
            jMenuBar1.add(jMenu3);

            setJMenuBar(jMenuBar1);

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 880, Short.MAX_VALUE)
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 672, Short.MAX_VALUE))
            );

            pack();
        }// </editor-fold>//GEN-END:initComponents

    private void jmni_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_salirActionPerformed
        // TODO add your handling code here:
         if(JOptionPane.showConfirmDialog(null, "Desea Salir?")==0)
                {
                    this.dispose();
                }
    }//GEN-LAST:event_jmni_salirActionPerformed

    private void jtbl_kardexMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtbl_kardexMouseClicked
        // TODO add your handling code here:
}//GEN-LAST:event_jtbl_kardexMouseClicked

    private void jtbl_kardexKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtbl_kardexKeyPressed
        // TODO add your handling code here:
}//GEN-LAST:event_jtbl_kardexKeyPressed

    private void jrb_bclaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bclaveActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bclaveActionPerformed

    private void jrb_bdescripActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bdescripActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bdescripActionPerformed

    private void jtf_busquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_busquedaActionPerformed
        // TODO add your handling code here:
        this.jbtn_buscarActionPerformed(evt);
}//GEN-LAST:event_jtf_busquedaActionPerformed

    private void jbtn_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_buscarActionPerformed
        // TODO add your handling code here:
        // this.jtf_busqueda.getText();
        if(JOptionPane.showConfirmDialog(null, "Estan Correctos sus Datos?")==0) {
            this.carga_datos_kardex(buscamp, this.jtf_busqueda.getText().toUpperCase().trim(), "0");
        } else {
            this.jtf_busqueda.requestFocus();
        }
}//GEN-LAST:event_jbtn_buscarActionPerformed

    private void jrb_bitemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bitemActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bitemActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        this.jmni_salirActionPerformed(evt);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jrb_bitem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bitem1ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bitem1ActionPerformed

    private void jrb_fechamovActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_fechamovActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_fechamovActionPerformed

    private void jrb_fechamov1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_fechamov1ActionPerformed
        // TODO add your handling code here:
       buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_fechamov1ActionPerformed

    private void jtf_canpzaingresaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_canpzaingresaActionPerformed
        // TODO add your handling code here:
        this.jtf_idinsumo.requestFocus();
}//GEN-LAST:event_jtf_canpzaingresaActionPerformed

    private void jtf_idinsumoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_idinsumoActionPerformed
        // TODO add your handling code here:

    this.jbtn_buscarActionPerformed(evt);
}//GEN-LAST:event_jtf_idinsumoActionPerformed

    private void jbtn_buscaridinsuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_buscaridinsuActionPerformed
        // TODO add your handling code here:
        if(this.jtf_idinsumo.getText().length()>0)
            {
                this.carga_datos_catalogo(9, 1, this.jtf_idinsumo.getText().trim().toUpperCase(), 0,this.jtf_canpzaingresa.getText().trim());
            }
}//GEN-LAST:event_jbtn_buscaridinsuActionPerformed

    private void jbtn_importarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_importarActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Desea Importar Estos Articulos?")==0) {
            String arreglo_importa[]=this.jta_archivo.getText().split("\n");
            String arreglo_codigo[]=null;
            System.out.println("Estos tiene archivo:"+arreglo_importa.length);
            for (int i=0;i<arreglo_importa.length;i++) {
                arreglo_codigo=arreglo_importa[i].split("\t");
                this.jtf_idinsumo.setText(arreglo_codigo[0]);
                this.jtf_canpzaingresa.setText(arreglo_codigo[1]);
                this.jbtn_buscaridinsuActionPerformed(evt);
            }
            this.jtf_canpzaingresa.setText("0");
            this.jtf_idinsumo.setText("");
            this.jtf_idinsumo.requestFocus();
        }
}//GEN-LAST:event_jbtn_importarActionPerformed

    private void jbtn_guardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardarActionPerformed
        // TODO add your handling code here:
        String cadenafilas="",punto="";
        float cantidad=0,totalpiezas=0;
        int nobjetotabla=this.jtable_modelo_doctomovidet.getRowCount();
        int fi=0,controlfolio=0,error=0;
        for(fi=0;fi<nobjetotabla;fi++) 
            {
                  try{
                        cantidad = Float.valueOf(this.jtable_modelo_doctomovidet.getValueAt(fi, 3).toString()).floatValue();
                        totalpiezas+=cantidad;
                    }catch (NumberFormatException nfe) {
                        cantidad=0;
                        error=1;
                    }
                    // System.out.println("cachar error"+cadenafilas);
                    if (cantidad > 0) {
                        cadenafilas+=""+this.jtable_modelo_doctomovidet.getValueAt(fi, 3).toString()+":"+this.jtable_modelo_doctomovidet.getValueAt(fi, 0).toString()+":"+this.jtable_modelo_doctomovidet.getValueAt(fi, 4)+""+"\n";
                    }
             }//fin del for
        if ( (totalpiezas > 0) && (error==0) )
            {
            if(JOptionPane.showConfirmDialog(null, "Documento sera Guardado. Estan correcto sus Datos?")==0)
                {
                    for(int i = 0 ;i < nobjetotabla; i++)
                            {
                              punto=jtable_modelo_doctomovidet.getValueAt(i, 6).toString().replace(".", "")+".";
                              jtable_modelo_doctomovidet.setValueAt(punto, i,6);
                            }
                                String arreglo_alma[]=this.jcmbx_almacenes.getSelectedItem().toString().split(":");
                                String arreglo_tipomov[]=this.jcmbx_idmovimientoalma.getSelectedItem().toString().split(":");
                                java.util.Vector arreglodearticulos=this.jtable_modelo_doctomovidet.getDataVector();
                                String articulos_papostgresql=arreglodearticulos.toString();
                                articulos_papostgresql=articulos_papostgresql.replace('[','{');
                                articulos_papostgresql=articulos_papostgresql.replace(']','}');
                                articulos_papostgresql=articulos_papostgresql.replace("null",".");
                                String texto="select * from x1distribucion_insumos_artic_mov_inve(1,'"+this.fechaamericana(this.jdc_fechadocto.getDate())+"','"+this.jtf_doctoreferencia.getText().trim().toUpperCase()+"','"+arreglo_alma[0]+"','"+arreglo_tipomov[0]+"','1','"+variables_global.getId_empleado()+"','"+this.jtf_observaciones.getText().trim().toUpperCase().replace(",", "")+"','"+articulos_papostgresql+"')";
                                System.out.println(texto);
                                try
                                    {
                                    rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                    while (rs.next())
                                        {
                                        controlfolio=rs.getInt(1);
                                        if (rs.getInt(1) > 0)
                                            {
                                                JOptionPane.showMessageDialog(null,"Requisicion Correcta, Gracias", "Sistema Integral(Requisicion Insumos) : Confirmacion",1);
                                            }
                                        else
                                            {
                                                JOptionPane.showMessageDialog(null," Error Verifique sus Cantidades", "Sistema Integral(requisicion Insumos) : Error",1);
                                            }
                                        }
                                    }
                                catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                        JOptionPane.showMessageDialog(null," Recepcion Incorrecta ", "Sistema Integral(Requisicion Insumos) : Error",1);
                                    }
                    }//fin del if qu confirmo guardar diferencia
                }
                else
                    {
                        JOptionPane.showMessageDialog(null,"por Favor Verifique que Las Cantidades Sean Numericas");
                    }


    
    }//GEN-LAST:event_jbtn_guardarActionPerformed

    private void jbtn_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_salirActionPerformed

        // TODO add your handling code here:
        //
        //x.cierraConexion();
        this.dispose();
}//GEN-LAST:event_jbtn_salirActionPerformed

    private void jbtn_helpayudameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_helpayudameActionPerformed
        // TODO add your handling code here:
       // this.ayuda();
}//GEN-LAST:event_jbtn_helpayudameActionPerformed

    private void jmni_buscararticuloActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_buscararticuloActionPerformed
        // TODO add your handling code here:
        this.jbtn_buscarActionPerformed(evt);
}//GEN-LAST:event_jmni_buscararticuloActionPerformed

    private void jmni_guardardoctoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_guardardoctoActionPerformed
        // TODO add your handling code here:
        this.jbtn_guardarActionPerformed(evt);
    }//GEN-LAST:event_jmni_guardardoctoActionPerformed

    private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
        // TODO add your handling code here:
         indexactual=this.jTabbedPane1.getSelectedIndex();
          if((indexactual==1)&&(yacarguecatdocto==0))
                {
                   yacarguecatdocto=1;
                   this.carga_datos_movinventariodocto(0,"");
                }
          if(indexactual==2)
                {
                   this.jdc_fechadocto.requestFocus();
                }
    }//GEN-LAST:event_jTabbedPane1StateChanged

    private void jcmbx_almacenesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbx_almacenesActionPerformed
        // TODO add your handling code here:
        this.jtf_doctoreferencia.requestFocus();
    }//GEN-LAST:event_jcmbx_almacenesActionPerformed

    private void jtf_doctoreferenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_doctoreferenciaActionPerformed
        // TODO add your handling code here:
        this.jcmbx_idmovimientoalma.requestFocus();
    }//GEN-LAST:event_jtf_doctoreferenciaActionPerformed

    private void jcmbx_idmovimientoalmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbx_idmovimientoalmaActionPerformed
        // TODO add your handling code here:
        this.jtf_observaciones.requestFocus();
    }//GEN-LAST:event_jcmbx_idmovimientoalmaActionPerformed

    private void jtf_observacionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_observacionesActionPerformed
        // TODO add your handling code here:
        this.jtf_canpzaingresa.requestFocus();
    }//GEN-LAST:event_jtf_observacionesActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new insumos_articulos_movi_inve().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JButton jbtn_buscar;
    private javax.swing.JButton jbtn_buscaridinsu;
    private javax.swing.JButton jbtn_guardar;
    private javax.swing.JButton jbtn_helpayudame;
    private javax.swing.JButton jbtn_importar;
    private javax.swing.JButton jbtn_salir;
    private javax.swing.JComboBox jcmbx_almacenes;
    private javax.swing.JComboBox jcmbx_idmovimientoalma;
    private com.toedter.calendar.JDateChooser jdc_fechadocto;
    private javax.swing.JLabel jlbl_textobuscado;
    private javax.swing.JMenuItem jmni_buscararticulo;
    private javax.swing.JMenuItem jmni_guardardocto;
    private javax.swing.JMenuItem jmni_salir;
    private javax.swing.JPanel jpn_cuerpo;
    private javax.swing.JRadioButton jrb_bclave;
    private javax.swing.JRadioButton jrb_bdescrip;
    private javax.swing.JRadioButton jrb_bitem;
    private javax.swing.JRadioButton jrb_bitem1;
    private javax.swing.JRadioButton jrb_fechamov;
    private javax.swing.JRadioButton jrb_fechamov1;
    private javax.swing.JTable jt_almamoviextras;
    private javax.swing.JTextArea jta_archivo;
    private javax.swing.JTable jtb_insumos;
    private javax.swing.JTable jtbl_kardex;
    private javax.swing.JTextField jtf_busqueda;
    private javax.swing.JTextField jtf_canpzaingresa;
    private javax.swing.JTextField jtf_doctoreferencia;
    private javax.swing.JTextField jtf_idinsumo;
    private javax.swing.JTextField jtf_observaciones;
    // End of variables declaration//GEN-END:variables

}
